package com.tbb.app.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "修改密码传参对象")
public class UserPasswordDTO {

    @ApiModelProperty("旧密码，必填")
    @NotBlank(message = "旧密码必填")
    private String oldPassword;

    @ApiModelProperty("新密码，必填")
    @NotBlank(message = "新密码必填")
    private String newPassword;

}
